package com.luckcoder.relax.games.domain.bo;

import com.luckcoder.relax.games.domain.RelaxUserAchievement;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户游戏成就业务对象 relax_user_achievement
 *
 * @author zhanghao
 * @date 2025-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RelaxUserAchievement.class, reverseConvertGenerate = false)
public class RelaxUserAchievementBo extends BaseEntity {
    
    /**
     * 成就ID
     */
    @NotNull(message = "成就ID不能为空", groups = {EditGroup.class})
    private Long achievementId;
    
    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;
    
    /**
     * 游戏ID
     */
    @NotNull(message = "游戏ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long gameId;
    
    /**
     * 游戏编码
     */
    @NotBlank(message = "游戏编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gameCode;
    
    /**
     * 成就类型（score_milestone分数里程碑、play_count游戏次数、consecutive_wins连胜）
     */
    @NotBlank(message = "成就类型（score_milestone分数里程碑、play_count游戏次数、consecutive_wins连胜）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String achievementType;
    
    /**
     * 成就名称
     */
    @NotBlank(message = "成就名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String achievementName;
    
    /**
     * 成就描述
     */
    private String achievementDesc;
    
    /**
     * 成就数值
     */
    private Long achievementValue;
    
    /**
     * 解锁时间
     */
    private Date unlockTime;
    
    /**
     * 是否已解锁（0未解锁 1已解锁）
     */
    private String isUnlocked;
    
    
}
